namespace Cos.Core.NHibernate.Mapping
{
    #region Usings

    using FluentNHibernate.Mapping;

    #endregion

    public class FormElementChoiceMap : ClassMap<FormElementChoiceDataModel>
    {
        #region Constructors and Destructors

        public FormElementChoiceMap()
        {
            this.Table("Form_Element_Choice");
            this.LazyLoad();
            this.Id(x => x.Id).GeneratedBy.Native().Column("ID");

            this.Map(x => x.FormElementId).Column("Form_Element_ID");
            this.Map(x => x.Ordering).Not.Nullable().Column("Ordering");
            this.Map(x => x.Value).Not.Nullable().Column("Value");
            this.Map(x => x.IsDeleted).Not.Nullable().Column("Is_Deleted");
            //HasMany(x => x.FormElementChoiceCultures).KeyColumn("Form_Element_Choice_ID");
        }

        #endregion
    }
}